From 0562778551d8bb5b29c1002d2b5ca598a7815c41 Mon Sep 17 00:00:00 2001 From: "kaf24@scramble.cl.cam.ac.uk" Date: Tue, 17 Feb 2004 22:47:33 +0000 Subject: [PATCH] bitkeeper revision 1.731 (40329a055YUhFYSkVu3sI-avfOBAyg) ide-disk.c: Disable debugging in LBA-48 IDE disc codepaths in Xen. --- xen/drivers/ide/ide-disk.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xen/drivers/ide/ide-disk.c b/xen/drivers/ide/ide-disk.c index 04169bfa97..eb4a972b01 100644 --- a/xen/drivers/ide/ide-disk.c +++ b/xen/drivers/ide/ide-disk.c @@ -420,13 +420,13 @@ static ide_startstop_t chs_rw_disk (ide_drive_t *drive, struct request *rq, unsi taskfile.device_head |= drive->select.all; taskfile.command = command; - /* #ifdef DEBUG */ +#ifdef DEBUG printk("%s: %sing: ", drive->name, (rq->cmd==READ) ? "read" : "writ"); if (lba) printk("LBAsect=%lld, ", block); else printk("CHS=%d/%d/%d, ", cyl, head, sect); printk("sectors=%ld, ", rq->nr_sectors); printk("buffer=0x%08lx\n", (unsigned long) rq->buffer); - /* #endif*/ +#endif memcpy(args.tfRegister, &taskfile, sizeof(struct hd_drive_task_hdr)); memcpy(args.hobRegister, &hobfile, sizeof(struct hd_drive_hob_hdr)); @@ -578,7 +578,7 @@ static ide_startstop_t do_rw_disk (ide_drive_t *drive, struct request *rq, unsig tasklets[9] = (task_ioreg_t) 0; // tasklets[8] = (task_ioreg_t) (block>>32); // tasklets[9] = (task_ioreg_t) (block>>40); - /*#ifdef DEBUG */ +#ifdef DEBUG printk("[A]\n"); printk("%s: %sing: LBAsect=%lu, sectors=%ld, buffer=0x%08lx, LBAsect=0x%012lx\n", drive->name, @@ -591,7 +591,7 @@ static ide_startstop_t do_rw_disk (ide_drive_t *drive, struct request *rq, unsig drive->name, tasklets[3], tasklets[2], tasklets[9], tasklets[8], tasklets[7], tasklets[6], tasklets[5], tasklets[4]); - /* #endif */ +#endif OUT_BYTE(tasklets[1], IDE_FEATURE_REG); OUT_BYTE(tasklets[3], IDE_NSECTOR_REG); OUT_BYTE(tasklets[7], IDE_SECTOR_REG); -- 2.30.2